﻿namespace Core
{
    public class DSString : DSVar
    {
        private string mValue;

        public string Value
        {
            get => mValue;
            set
            {
                mValue = value;
                onChange?.Invoke();
            }
        }

        public override string ToString() => Value;

        public override void Dispose()
        {
            if (IsDisposed) return;
            base.Dispose();

            mValue = string.Empty;
        }
    }
}
